﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ChooseRoomType.aspx.cs" Inherits="PresentationLayerWebForms.ChooseRoomType" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
 
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:HiddenField ID="txtNoOfRoom" runat="server"  />
    <asp:HiddenField ID="txtNoOfNights" runat="server" />
    <asp:HiddenField ID="txtVoucherAmt" runat="server" />
<asp:GridView ID="gvRoomType" runat="server" 
    onselectedindexchanged="gvRoomType_SelectedIndexChanged" 
    AutoGenerateColumns="False" ShowHeader="False">
    <Columns>
        <asp:ImageField DataImageUrlField="ImageFolderPath">
        </asp:ImageField>
        <asp:TemplateField SortExpression="Description">
            <ItemTemplate>
                <div>
                    <h3><asp:Label ID="Label3" runat="server" Text='<%# Bind("RoomTypeName") %>'></asp:Label></h3>
                </div>
                <div>
                    <span class="icon-user"></span>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("NumberOfBed") %>'></asp:Label>
                    &nbsp;Persons (Maximum)</div>
                <div>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Description") %>'></asp:Label>
                </div>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField>
            <ItemTemplate>
               <div id="price_info">
            <div class="info_row">
                <div>
                    Price:</div>
                <div>
                <asp:Label ID="Label4" runat="server" class="normalPrice" Text='<%# Eval("Price") %>'></asp:Label>
                 </div>
            </div>
            
            <div class="info_row">
                <div>
                    Room Charges:</div>
                <div>
                    <asp:Label ID="Label5" runat="server" class="roomCharges" Text=''></asp:Label>
                 </div>
            </div>
            <div class="info_row">
                <div>
                    Tax:</div>
                <div class="divText"></div>
            </div>
            <div class="info_row">
                <div>
                    Discount:</div>
                <div class="divText">
                <%= Context.Items["voucherAmt"]%>
                </div>
            </div>
            <div class="h_line_divider">
            </div>
            <div class="info_row total_price">
                <div>
                    Total Rate:</div>
                <asp:Label ID="Label6" runat="server" class="totRate" Text="Label"></asp:Label>
            </div>
        </div>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="ID" Visible="True" ItemStyle-CssClass="displayNone" >
<ItemStyle CssClass="displayNone"></ItemStyle>
        </asp:BoundField>
        <asp:CommandField ShowSelectButton="True" ButtonType="Button" 
            ControlStyle-CssClass="btn btn-primary" >
<ControlStyle CssClass="btn btn-primary"></ControlStyle>
        </asp:CommandField>
    </Columns>
</asp:GridView>
<asp:Button ID="btnBack" runat="server" Text="Back to previous page" 
    onclick="btnBack_Click"/>
</asp:Content>
